package com.qf.hadler;


import com.qf.exception.SsmModelException;
import com.qf.vo.ResultVO;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class SssmModelExceptionHandler {


    @ExceptionHandler({SsmModelException.class})
    @ResponseBody
    public ResultVO SsmModelException(SsmModelException ex){
        return new ResultVO(ex.getCode(),ex.getMessage(),null);
    }
}
